package itdep.domain.event;

import ga.hibernate.OrderedEnum;
import ga.i18n.Translatable;
import itdep.domain.TranslationType;

import java.util.Collection;


/**
 * @author kara (latest modification by kara)
 * @version $Revision: 11 $   $Date: 2010-06-16 10:18:57 +0000 (Wed, 16 Jun 2010) $
 */

public enum EventType implements OrderedEnum, Translatable {
	EXPELL(1, "expell"),
	NEW_SURNAME(2, "new-surname"),
	TRANSFER(3, "transfer"),
	ENROLL(4, "enroll"),
	EXTEND_SESSION(5, "extend-session"),
	OBTAIN_DIPLOMA(6, "obtain-diploma"),
	RESTORE(7, "restore"),
	ON_VACATION(8, "on-vacation"),
	REQUEST_EXPELL(9, "request-expell"),
	REQUEST_TRANSFER(10, "request-transfer"),
	REQUEST_OBTAIN_DIPLOMA(11, "request-obtain-diploma"),
	REQUEST_RESTORE(12, "request-restore"),
	REQUEST_RESTORE_FROM_VACATION(13, "request-restore-from-vacation"),
	CHANGE_PAYMENT(14, "change-payment");

	private int order;
	private String code;

	EventType(int order, String code) {
		this.order = order;
		this.code = code;
	}

	public int getOrder() {
		return order;
	}


	@Override
	public String getTranslationCode() {
		return code;
	}

	@Override
	public String getTranslationType() {
		return "event-type";
	}

	@Override
	public Collection<String> getTranslationVariants() {
		return TranslationType.STANDARD.getVariants();
	}
}